extends CharacterBody2D

@export var speed = 15 #僵尸的移动速度

# Called when the node enters the scene tree for the first time.
func _ready():
	$AnimatedSprite2D.play("walk")
	$CollisionShape2D.disabled=false
	pass # Replace with function body.

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	pass

func change_state():
	$AnimatedSprite2D.play("eat")
	speed = 0;
	pass
